
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>帮助与介绍</title>
<link rel="shortcut icon" href="favicon.ico" />

<script type="text/javascript">
<!--
function print_css() {
	document.write("<link rel=stylesheet href=\""+style+"\" type=\"text/css\">");
}
//-->
</script>
<link rel="stylesheet" type="text/css" href="css/contact.css"/>
<script src="js/init.js" type="text/javascript"></script>
<script src="js/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="js/webservice.js" type="text/javascript"></script>
</head>
<body>



<!-- **** Main **** -->
<table width="85%" border="0" cellspacing="0" cellpadding="0" class="center">
<tr class="bg">
	<td><table width="940" border="0" cellspacing="0" cellpadding="0" class="center">
		<tr>
			<td><img src="images/head_clientsbrandsbackground.gif" width="907" height="61" alt="Clients, brands and background" /></td>
		</tr>
		</table>
		<table width="940" border="0" cellspacing="0" cellpadding="0" class="center">
		<tr>
			<td width="43" nowrap="nowrap"></td>
			<td width="528">
			<table width="502" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="150" class="text">
						<span class="head">基本资料<br /></span>
						&nbsp;<br />
						姓名<span class="arrow">-&#8250;</span> Lacus T Clyne<br />
						昵称<span class="arrow">-&#8250;</span> T 	<br />
						年龄<span class="arrow">-&#8250;</span> 17岁<br />
						生日<span class="arrow">-&#8250;</span> 2月5日<br />
						星座<span class="arrow">-&#8250;</span> 水瓶座<br />
						身高<span class="arrow">-&#8250;</span> 160CM<br />
						体重<span class="arrow">-&#8250;</span> 46KG<br />
						血型<span class="arrow">-&#8250;</span> B型<br />
						&nbsp;<br />
						</td>
					<td width="26" nowrap="nowrap"></td>
					<td width="300" class="text">
						<span class="head">自我介绍<br /></span>
						&nbsp;<br />
						我是能够和你对话的机器人小T哦(>^ω^<)喵。<br />
						我的知识包括<a href="http://www.reforceinternational.com">整句对话</a>功能，<a href="http://www.reforceinternational.com">流行短语对话</a>功能，<br />
						<a href="http://www.reforceinternational.com">专业词语对话</a>功能，<a href="http://www.reforceinternational.com">日常词语对话</a>功能，<a href="http://www.reforceinternational.com">基本词语对话</a>功能。
						你可以在这里交给我各方面的知识，我就可以更好的和你对话了~\(≧▽≦)/~！
					</td>
					<td width="26" nowrap="nowrap"></td>
				</tr>
				</table>
				<img src="images/head_sendamessage.gif" width="502" height="60" alt="Send a message" /><br />
				<table width="528" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="150" class="text"><span class="head">实时对话<br /></span>
						<br />
						亲可以在右边的对话框中输入内容与我对话哦~~<br />~\(≧▽≦)/~看看我现在都会说些什么
						<br />
						</td>
					<td width="26" nowrap="nowrap"></td>
					<td width="352">
						<div class="formular">
								 	<label class="text">对话内容：</label>
								 	<textarea name="content" id="content" rows="10" cols="30"></textarea>
									<br class="clear"/>
									<label class="text">说：</label>
									<input type="text" id="say" name="say" value="" />
									<input type="image" src="images/submit.gif" id="submitter" class="submit" name="button" />
						</div>
					</td>
				</tr>
				</table>
				</td>
			<td width="369"><img src = "images/123333.jpg" height='450' width="317"></td>
		</tr>
		</table>

		<!-- **** Footer **** -->
		<table width="940" border="0" cellspacing="0" cellpadding="0" class="center">
		<tr>
			<td width="897" height="110" class="bottomright"><br />
				<span class="copy">&copy; 2012 Fee - All rights reserved. | www.taikang.xiaoT </span></td>
			<td width="43"></td>
		</tr>
		<tr>
			<td height="300"></td>
			<td></td>
		</tr>
		</table></td>
</tr>
</table>
<script type="text/javascript">

$(function(){
				$("#submitter").click(function(){
					var jsonData = $("#say").val();
					var content = $("#content").val();
					$("#content").append("我说：" + jsonData + "\r");
//				    var pl = new SOAPClientParameters();
//				    pl.add("say", jsonData);
//				    SOAPClient.invoke("http://localhost:8080/xiaoT/services/talk", "talk", pl, true, HelloTo_callBack);
//				    $("#say").val("");
					$.getJSON("talk!talk.action", {'say': jsonData}, function(result){
						 if(result.success)   
		                 {
							 var content = $("#content").val();
							 $("#content").append("小T说：" + result.msg).append("\r");
		                 }else{
		                	 $.showErrorMessage(result.msg, "bottom");
		                 }
					 });
				});
//				function HelloTo_callBack(r)
//				{
///					 var content = $("#content").val();
//					 $("#content").append("小T说：" + r).append("\r");
//				}

						
         		 
});
</script>
</body>
</html>

